import service from '@/api'

//顶级部门列表
export function group(params) {
  return service({
    url:'/app/group',
    method:'GET',
    params
  })
}

//部门列表
export function groupSecond(params) {
  return service({
    url:'/app/groupSecond',
    method:'GET',
    params
  })
}

export function addGroup(params) {
  return service({
    url:'/app/addGroup',
    method:'POST',
    params
  })
}

export function editGroup(params) {
  return service({
    url:'/app/editGroup',
    method:'POST',
    params
  })
}

export function delGroup(params) {
  return service({
    url:'/app/delGroup',
    method:'POST',
    params
  })
}
